import request from '@/utils/request'

// 查询door列表
export function listDoor(query) {
  return request({
    url: '/doorAction/list',
    method: 'get',
    params: query
  })
}

// 查询door详细
export function getDoor(doorId) {
  return request({
    url: '/doorAction/' + doorId,
    method: 'get'
  })
}

// 新增door
export function addDoor(data) {
  return request({
    url: '/doorAction',
    method: 'post',
    data: data
  })
}

// 修改door
export function updateDoor(data) {
  return request({
    url: '/doorAction',
    method: 'put',
    data: data
  })
}

// 删除door
export function delDoor(doorId) {
  return request({
    url: '/doorAction/' + doorId,
    method: 'delete'
  })
}

// 导出door
export function exportDoor(query) {
  return request({
    url: '/doorAction/export',
    method: 'get',
    params: query
  })
}